package com.xjiye_test.payServer.servletGroup.weixinpublic;

import javax.servlet.ServletException;
import javax.servlet.http.HttpServlet;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import java.io.IOException;
import java.io.PrintWriter;

public class Token extends HttpServlet {
    protected void doPost(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException {
        resp.setCharacterEncoding("UTF-8");
        PrintWriter out = resp.getWriter();
        String reStr="{\"access_token\":\"rYo1c-BxwQaGFH5PAYBE5w9SBAIMl4PIwaF_jOxnexwcEShKVPUBZw2Pd6J1l4xAqmzK-TyB6W3PVoJq6bjDvwsel-DhqLkp-Iz_PpW_wqkVJ1xdnrbi6rBemwefKJb4NFHcAEAXPR\",\"expires_in\":7200}";;
        req.setCharacterEncoding("UTF-8");
        out.println(reStr);
        out.flush();
    }

    protected void doGet(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException {
        this.doPost(req,resp);
    }
}
